package cn.zkrt.iotms.utils;

import java.util.Base64;

public class Base64Conversion {

    public static String bytesToBase64(byte[] bytes) {
        return Base64.getEncoder().encodeToString(bytes);
    }

    public static byte[] base64ToBytes(String str) {
        return Base64.getDecoder().decode(str);
    }
}